package com.gupaoedu.vip.pattern.template.course;

/**
 * Created by Tom.
 */
public class JavaCourse extends NetworkCourse {

    private boolean flag = false;

    public JavaCourse(boolean flag) {
        this.flag = flag;
    }

    public JavaCourse() {
    }

    void checkHomework() {
        System.out.println("检查Java的架构课件");
    }

    @Override
    protected boolean needHomework() {
        return flag;
    }
}
